package api.model;

import m.common.model.FieldMeta;
import m.common.model.Model;
import m.common.model.TableMeta;
import m.common.model.type.FieldType;

@TableMeta(name="ot_api_session",description="session表")
public class ApiSession extends Model {

    @FieldMeta(name="token",type=FieldType.STRING,length=100,description="token")
    private String token;
    @FieldMeta(name="admin_group",type= FieldType.STRING,length=50,description="管理员组")
    private String group;
    @FieldMeta(name="org_group",type= FieldType.STRING,length=50,description="当前机构")
    private String org;
    @FieldMeta(name="parent_org",type= FieldType.STRING,length=50,description="当前父机构")
    private String parentOrg;

    public String getParentOrg() {
        return parentOrg;
    }

    public void setParentOrg(String parentOrg) {
        this.parentOrg = parentOrg;
    }

    public String getToken() {
        return token;
    }

    public void setToken(String token) {
        this.token = token;
    }

    public String getGroup() {
        return group;
    }

    public void setGroup(String group) {
        this.group = group;
    }

    public String getOrg() {
        return org;
    }

    public void setOrg(String org) {
        this.org = org;
    }
}
